
import { View, Text, Image } from '@tarojs/components'
import React from 'react'
import './Nothing.scss'


class Nothing extends React.Component {

    render(){
        const nothingText='空空如也'
        const hasGuideBtn=false
        const guideText='立即创建'
        const onGuideHandle=() =>{}
        return(
            <View className='nothing_container'>
                <Image className='nothing_icon' src='http://39.106.116.133:8080/images/others/icon_nothing.png'></Image>
                <Text className='nothing_text'>{ nothingText }</Text>
                {
                    hasGuideBtn && <View className='nothing_guide' onClick={onGuideHandle()}><Text>{guideText}</Text></View>
                }
                
            </View>
        )
    }
}


export {Nothing}